#pragma once
#include <iostream>
#include <string>
using namespace std;
class Car
{
private:
	string make;
	int year;
	double gaslev;
	double gascap;
	double mpg;
	double miles;
public:
	string getMake();
	int getYear();
	double getGaslev();
	double getGascap();
	double getMpg();
	double getMiles();
	void setMake(string carMake);
	void setYear(int carYear);
	void setGaslev(double carGaslev);
	void setGascap(double carGascap);
	void setMiles(double carMiles);
	void setMpg(double carMpg);
	void carMove(double distance);
	Car(string carMake, int carYear, double carGaslev, double carGascap, double carMpg, double carMiles);
	Car(void);
	~Car(void);
};
string Car::getMake(){
	return make;
}
int Car::getYear(){
	return year;
}
double Car::getGaslev(){
	return gaslev;
}
double Car::getGascap(){
	return gascap;
}
double Car::getMpg(){
	return mpg;
}
double Car::getMiles(){
	return miles;
}
void Car::setMake(string carMake){
	make=carMake;
}
void Car::setGaslev(double carGaslev){
	gaslev=carGaslev;
}
void Car::setGascap(double carGascap){
	gascap=carGascap;
}
void Car::setYear(int carYear){
	year=carYear;
}
void Car::setMpg(double carMpg){
	mpg=carMpg;
}
void Car::setMiles(double carMiles){
	miles=carMiles;
}
Car::Car(string carMake, int carYear, double carGaslev, double carGascap, double carMpg, double carMiles){
	make=carMake;
	year=carYear;
	gaslev=carGaslev;
	gascap=carGascap;
	mpg=carMpg;
	miles=carMiles;
}
void Car::carMove(double distance){
	gaslev=gaslev-(distance/mpg);
	miles=miles+distance;
}